<script>
    function setConfig(configValue) {
        document.getElementById('config').value = configValue; 
        if(configValue == "delete") {
            document.getElementById('regcode').value = "delete";
            var confirmValue = confirm("정말 삭제하겠습니까?"); 
            if(confirmValue) {
                document.coursevaluationfrm.submit();
            } else {
                alert('삭제 취소되었습니다.');
                return false;
            }
        }
        return true;
    }
</script>
<form method="POST" name="coursevaluationfrm">
<input type="hidden" name="regcode" id="regcode" value="{regcode}">
<input type="hidden" name="datano" value="{data.no}">
<input type="hidden" name="config" id="config" value="">
<table width="98%" cellspacing="0" cellpadding="3" border="0" class="font">
<tbody><tr>
<td width="30"><img width="1" height="1" src="../admin/images/1blank.gif"/></td>
<td valign="top"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td valign="top" height="30"><img width="168" height="19" src="../admin/images/sub_teacher_title02.gif"/></td>
</tr>
<tr>
<td height="50"><table width="780" rules="rows" frame="hsides" cellspacing="0" cellpadding="3" bordercolor="#cccccc" border="2" style="border-collapse: collapse;" class="font">
<tbody><tr>
<td width="130"><div align="left">강의명</div></td>
<td><div align="left">
<select id="cate1" name="cate1"></select>
</div></td>
</tr>
<tr>
<td><div align="left">날짜</div></td>
<td><div align="left">
<input type="text" maxlength="2" size="2" value="{data.month}" class="font" name="month"/>
월
<input type="text" maxlength="2" size="2" value="{data.date}" class="font" name="date"/>
일</div></td>
</tr>
<tr>
<td><div align="left">학생</div></td>
<td><div align="left">
<select id="cate2" name="cate2"></select>
</div></td>
</tr>
<tr>
<td><div align="left">출결</div></td>
<td><div align="left">출석
<label>
<input type="radio" value="true" name="isabsent"/>
</label>
/ 결석
<input type="radio" value="false" name="isabsent"/>
</div></td>
</tr>
<tr>
<td><div align="left">평가</div></td>
<td><table width="200" cellspacing="0" cellpadding="0" border="0" class="font">
<tbody><tr>
<td width="40">발음 </td>
<td>
<select id="select3" class="font" name="pron">
{data.pronOptions}
</select></td>
</tr>
<tr>
<td width="40">어휘</td>
<td><select id="select4" class="font" name="voca">
{data.vocaOptions}
</select></td>
</tr>
<tr>
<td width="40">회화</td>
<td><select id="select5" class="font" name="conv">
{data.convOptions}
</select></td>
</tr>
<tr>
<td width="40">문법</td>
<td><select id="select6" class="font" name="gram">
{data.gramOptions}
</select></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td><div align="left">메모(to 어머니)</div></td>
<td><div align="left">
<label/>
<label>
<textarea id="textfield20" rows="10" cols="50" name="memo"/>
{data.memo}
</textarea>
</label>
<br/>
</div></td>
</tr>
</tbody></table></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td> </td>
<td valign="top">
<button type=submit onClick="javascript:setConfig('add');" name="submit_add">{type} 완료 후 추가등록</button>&nbsp;
<button type=submit onClick="javascript:setConfig('list');" name="submit_list">{type} 완료</button>&nbsp;
<button type=reset>취소</button>&nbsp;
<!--{? type == "수정" }-->
<button type=button onClick="javascript:setConfig('delete');" name="submit_delete">상품 삭제</button>
<!--{/}-->
</td>
</tr>
</tbody></table>
